<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "vtasklist".
 *
 * @property integer $userid
 * @property integer $id
 * @property integer $status
 * @property string $title
 * @property integer $number
 * @property integer $reflash_at
 * @property integer $is_speed
 * @property string $typename
 * @property double $price
 * @property double $brush_price
 * @property integer $single_meet
 * @property integer $created_at
 * @property integer $end_at
 * @property integer $stopdate
 * @property string $statusname
 * @property integer $ispack
 */
class Vtasklist extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'vtasklist';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid', 'title'], 'required'],
            [['userid', 'id', 'status', 'number', 'reflash_at', 'is_speed', 'single_meet', 'created_at', 'end_at', 'stopdate', 'ispack'], 'integer'],
            [['price', 'brush_price'], 'number'],
            [['title'], 'string', 'max' => 255],
            [['typename', 'statusname'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'userid' => '商户编号',
            'id' => '任务自增ID',
            'status' => '任务状态',
            'title' => '标题',
            'number' => '数量',
            'reflash_at' => '刷新时间',
            'is_speed' => '限速',
            'typename' => '字典名称',
            'price' => '单价',
            'brush_price' => '刷单价',
            'single_meet' => '单人可接',
            'created_at' => '创建时间',
            'end_at' => '截止日期(选填)',
            'stopdate' => '暂停时间',
            'statusname' => '字典名称',
            'ispack' => '是否打包',
        ];
    }
}
